<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>文件数据</title>
</head>
<script type="text/javascript">
function update()
{
	 window.location.href="http://127.0.0.1:8080/test#abc";
}
</script>

<body>
<h1>文件信息展示</h1>
<hr/>
<br/>
      <table width="90%" border="1" cellpadding="2" cellspacing="0">
        <tr>
            <th>文件ID</th>
            <th>用户ID</th>
            <th>父ID</th>
            <th>文件类型</th>
            <th>文件名称</th>
            <th>文件大小</th>
            <th>上传时间</th>
            <th>修改时间 </th>
            <th>下载时间</th>
            <th>下载数</th>
            <th>储存位置</th>
            <th>您可以操作</th>
        </tr>
        <tr th:each="itemlist: ${itemlist}">
          <td th:text="${itemlist.iIid}"></td>
          <td th:text="${itemlist.iUid}"></td>
          <td th:text="${itemlist.iPid }"></td>
          <td th:text="${itemlist.iType}"></td>
          <td th:text="${itemlist.iName}"></td>
          <td th:text="${itemlist.iSize}"></td>
          <td th:text="${itemlist.iPubdate}"></td>
          <td th:text="${itemlist.iModdate}"></td>
          <td th:text="${itemlist.iDowdate}"></td>
          <td th:text="${itemlist.iDownload}"></td>
          <td th:text="${itemlist.iAddress}"></td>
                <td>  <div>
                      <form   th:action="@{/delete?(id=${itemlist.iIid})}" method="post"  >
                      <div style="width:50%;padding:0;margin:0;float:left;box-sizing:border-box;"> 
                      <input type="submit" value="删除" />
                      </div>
                      </form>
                      
                      <div style="width:50%;padding:0;margin:0;float:left;box-sizing:border-box;">
                      <input type="submit" value="修改" onclick="update()"/>
                      </div>
                      </div>
                </td>
            </tr>
 </table>
<br/>
    <a href="http://127.0.0.1:8080/test">返回到主页面</a>
    
</body>
</html>